package com.ruoyi.kis.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult_KIS;
import com.ruoyi.kis.domain.DispatchOrderF;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @Author: zhanglm
 * @CreateDate: 2025-06-27 9:29
 * @FullNameClass: com.ruoyi.kis.controller.TestController
 * @Description:
 */
@RestController
@RequestMapping("/kis")
public class Test1Controller extends BaseController {


    @RequestMapping("/test")
    public AjaxResult_KIS test(@RequestBody  DispatchOrderF dispatchOrderF){
        if(dispatchOrderF.getFInterID()!=null && dispatchOrderF.getFInterID().equals("1158")){
            return AjaxResult_KIS.error("测试");
        }else{
            return AjaxResult_KIS.success();
        }

    }
}
